var ToastView = (function () {
  function a() {
    (Laya.stage.alignH = Laya.Stage.ALIGN_CENTER),
      (Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE);
  }
  return (
    (a.toastView = function (a) {
      if (a) {
        var e = new Label();
        (e.fontSize = 16),
          (e.height = 50),
          (e.text = a),
          (e.width = 20 * a.length),
          18 * a.length > 300 && (e.width = 300),
          18 * a.length > 1200 && (e.height = 70),
          e.pos(0.5 * (375 - e.width), 500),
          (e.align = "center"),
          (e.valign = "middle"),
          (e.color = "#FFFFFF"),
          (e.bgColor = "#000000"),
          (e.wordWrap = !0),
          (e.alpha = 0.95),
          (e.padding = "2,5,2,5"),
          (e.zOrder = 2e3),
          Laya.stage.addChild(e),
          Laya.timer.once(2500, e, e.removeSelf);
      }
    }),
    a
  );
})();
